// iotaTest
package main

import (
	"fmt"
)

func main() {
	const (
		a = iota //0
		b        //1
		c        //2
		d = "ha" //独立值，iota += 1
		e        //"ha"   iota += 1
		f = 100  //iota +=1
		g        //100  iota +=1
		h = iota //7,恢复计数
		i        //8
	)
	fmt.Println(a, b, c, d, e, f, g, h, i)

	const (
		a1 = 1 << iota // 1
		a2 = 3 << iota // 110
		a3             // 1100
		a4             // 11000
	)
	// 1 6 12 24
	fmt.Println(a1, a2, a3, a4)
}
